/****************************** Exercise 2 *********************
 * Create a class containing a float and use it
 * to demonstrate aliasing.
 ***************************************************************/

package operators;

import static utils.Print.print;

class C1 {
    public float f1;
}
/**
 *
 * @author Vlad
 */
public class Exercise2 {
    public static void main(String [] args){
        C1 c11 = new C1();
        C1 c12 = new C1();
        c11.f1 = 10;
        print("c11.f1 = " + c11.f1);
        print("c12.f1 = " + c12.f1);
        c12 = c11;
        c12.f1 = 14;
        print("c11.f1 = " + c11.f1);
        print("c12.f1 = " + c12.f1);
        print();
    }
}
